import { requestClient } from '#/api/request';


/**
 * 新增试卷
 */
export async function addPaperApi(data:any) {
  return requestClient.post('/certification/create-design-question', data);
}

/**
 * 拉取试卷列表
 **/

export async function getExamListApi(params:any) {
  return requestClient.get('/certification/get-exam-papers', { params });
}

/**
* 拉取试卷详情
**/ 
export async function getDetailApi(params:any) {
  return requestClient.get('/certification/get-paper-questions', { params });
}

/**
 * 删除试卷
 */
export async function delExamPaperApi(params:any) {
  return requestClient.delete(`/certification/delete-exam-papers/${params.papersId}`);
}
